{% extends "::layout.html.twig" %}

{% block title %} Panier - {{ parent() }} {% endblock %}

{% block content %}
    <div class="row">
        <div class="col-xs-12 col-lg-12">
            <div class="block">
                <h1>Votre panier</h1>
                <a href="{{ path('y_commerce_global_cart_reset') }}" class="btn btn-danger"><i class="icon-ban-circle"></i> Vider le panier</a>
                <hr/>
                
                <ul>
                {% for product in products %}
                    <li><img src="{{ '/'~product.getWebPath() }}" class="img-thumbnail" alt="{{ product.name }}" title="{{ product.name }}" width="100" height="100" /> {{ product.name }} - <b>{{ product.prix }} €</b></li>
                {% endfor %}
                </ul>
                
                <hr/>
                <h5 style="margin-left:40px; font-weight: bold;">Total : {{ total }} €</h5>
                <div class="clearfix"></div>
            </div>
        </div>
    </div>
{% endblock %}